<html xmlns="http://www.w3.org/1999/xhtml">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>登录</title>
		<%@ include file="/pages/safeai/jsp/common/meta.jsp"%>
<style>
	body{
		padding:0px;
		margin:0px;
		text-align:center;
		font-family:Arial, "宋体", "黑体";
		font-size:12px;
		/**background-image:url(images/safeai/login/background.jpg);
		background-repeat:no-repeat;
		background-position:50% 35%;**/
	}
	
	.td1{
		font-family:"黑体";
		font-size:18px;
		text-align:left;
		line-height:50px;
	}
	.backs{background:url(${ctx}/css/safeai/frameImg/login/background.jpg) no-repeat;height:338px;width:446px;margin:50px auto;text-align:left;}
	.btn{
		border-right: #7f7e7e 1px solid; 
		padding-right: 2px; 
		border-top: #7f7e7e 1px solid; 
		padding-left: 2px; 
		font-size: 12px; 
		filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#fcfbfa, EndColorStr=#8f8e8d); 
		border-left: #7f7e7e 1px solid; 
		cursor: hand; color: black; 
		padding-top: 2px; 
		border-bottom: #7f7e7e 1px solid; 
		cursor:hand;
		width:50px;
		background-color:transparent;
	}
</style>
</head>

<body> 
<div class="backs">
    <form action="login.do?method=login" method="post" name="loginForm" target="_top">
    <!-- 
    	<table border="0" cellpadding="0" cellspacing="0" >
         	<tr>
            <td colspan="2" height="55px" class="td1">
            	管理员登陆<br>
            	<span style="font-family:'宋体'; font-size:12px; color:#3366FF">
                    <logic:notEmpty name="loginmsg">
                        <bean:write name="loginmsg"/>
                    </logic:notEmpty>
                </span>
            </td>
            </tr>
        	<tr>
            <td height="60px" width="70px">用户名：</td>
            <td> <input type="text" id="userid" name="login.userid" class="shuru" maxlength="20"/></td>
            </tr>
            <tr>
            <td >密&nbsp;&nbsp;&nbsp;&nbsp;码：</td>
            <td> <input type="password" id="passwd" name="login.passwd" class="shuru"  maxlength="20"/></td>
            </tr>
            
            <tr>
            <td height="70px" align="right"><input type="submit" name="" value="登&nbsp;&nbsp;陆" class="btn" onclick="return check();"/></td>
            <td align="center"><input type="reset" name="" value="重&nbsp;&nbsp;置" class="btn" /></td>
            </tr>
        </table> -->
        <div style="width:175px;height:250px;margin-left:230px;">
        	<div style="width:175px;height:50px;"></div>
        	
        	<div style="width:175px;height:50px;" class="td1">管理员登陆</div>
        	<div style="width:175px;height:20px;" class="td1">
        		<span style="font-family:'宋体'; font-size:12px; color:#3366FF">
                    <logic:notEmpty name="loginmsg">
                        <bean:write name="loginmsg"/>
                    </logic:notEmpty>
                </span>
        	</div>
        	
        	<div style="width:175px;height:20px;">
        		<div style="width:50px;height:20px;line-height:20px;text-align:right;float:left;">用户名：</div>
        		<div style="width:125px;height:20px;line-height:20px;float:left;">
					<input type="text" id="userid" name="login.userid" style="width:100px;height:20px;font-size:12px;" maxlength="20"/>
				</div>
        	</div>
        	<div style="width:175px;height:8px;font-size:0"></div>
        	<div style="width:175px;height:20px;">
        		<div style="width:50px;height:20px;line-height:20px;text-align:right;float:left;">密&nbsp;&nbsp;码：</div>
        		<div style="width:125px;height:20px;line-height:20px;float:left;">
					<input type=password id="password" name="login.passwd" style="width:100px;height:20px;font-size:12px;" maxlength="20"/>
				</div>
        	</div>
        	<div style="width:175px;height:18px;font-size:0"></div>
        	<div style="width:175px;height:50px;">
        		<input type="submit" name="" value="登&nbsp;&nbsp;陆" style="margin-left:20px;" class="btn" onclick="return check();"/>
        		<input type="reset" name="" value="重&nbsp;&nbsp;置" class="btn" style="margin-left:20px;" />
        	</div>
        	
        </div>
        
        
    </form>
</div>
</body>
</html>
<script language="javascript"> 
	function check(){ 
		var userid = document.getElementById("userid").value;
		var passwd = document.getElementById("password").value;
		
		if(userid == null || userid == ""){
			document.getElementById("userid").focus();
			alert("请输入您的登录名!");
			return false;
		}
		
		if(passwd == null || passwd == ""){
			document.getElementById("password").focus();
			alert("请输入您的密码!");
			return false;
		} 
		
		return true;
	} 
</script>